// 园区建筑群档案维护
import request from '@/utils/request'
import qs from 'qs'
// 根据登录人获取列表
export const getloginlistapi = () => request.get('mbm-microservice-biz/mbm/archives/buildingSet/getListByLoginUser')
// 查询分页列表信息
export const getlistapi=params=>request.get('mbm-microservice-biz/mbm/archives/buildingSet/page',{params})
// 验证收费单位是否已存在客户档案
export const getyanzhengapi = params => request.get('mbm-microservice-biz/mbm/archives/buildingSet/chargeInstitutions/dossierInfo/validation', { params })
// 保存建筑群维护第一步,注册收费单位
// export const postweihuoneapi = data => request.post(
//   `mbm-microservice-biz/mbm/archives/buildingSet/save/firstStep?
//   companyName=${data.companyName}&identityCode=${data.identityCode}&manageUserMobile=${data.manageUserMobile}&manageUserName=${data.manageUserName}`)
export const postweihuoneapi = data => request.post('mbm-microservice-biz/mbm/archives/buildingSet/save/firstStep', data)
// 保存建筑群维护第二步，保存业务范围
export const postweihutwoapi=data=>request.post('mbm-microservice-biz/mbm/archives/buildingSet/save/secondStep',data)
// 保存建筑群维护第三步，保存建筑群信息
export const postweihuthreeapi=data=>request.post('mbm-microservice-biz/mbm/archives/buildingSet/save/thirdStep',data,{headers:{'Content-Type': 'multipart/form-data'}})
// 保存建筑群维护第四步，保存地理定位
export const postweihufourapi = data => request.post('mbm-microservice-biz/mbm/archives/buildingSet/save/fourthStep', data)
// 查看建筑群信息
export const getjianzhuqunapi = params => request.get('mbm-microservice-biz/mbm/archives/buildingSet/view', { params })
// 删除
export const postdeljianzhuqunapi = data => request.post(`mbm-microservice-biz/mbm/archives/buildingSet/delete?id=${data.id}`)
// 修改
export const updatejianzuapi=data=>request.post('mbm-microservice-biz/mbm/archives/buildingSet/update',data)